package merlin.dao;

import java.util.*;


public class DbResultSet extends java.util.ArrayList implements java.io.Serializable{

	private int totalRecords;
	private int pageSize=5;
	private int pageNumber=1;


	public DbResultSet(){
	}

	public DbResultSet(ArrayList records,int totalRecords){
		this(records,totalRecords,5,1);
	}

	public DbResultSet(ArrayList records,int totalRecords,int pageSize,int pageNumber){
		addAll(records);
		this.totalRecords=totalRecords;
		this.pageSize=pageSize;
		this.pageNumber=pageNumber;
	}



	public int getTotalRecords(){
		return totalRecords;
	}

	public int getPageSize(){
		return pageSize;
	}

	public int getPageNumber(){
		return pageNumber;
	}

}